{extend name="layout/layout" /}

{block name="pagecss"}

{/block}

{block name="content"}
<div class="row">
    <div class="col-md-12">
        <div class="portlet light">
            <div class="portlet-title">
                <div class="caption">
                    <i class="icon-share font-dark"></i>
                    <span class="caption-subject font-dark bold uppercase"> 领导班子 </span>
                </div>
                <div class="actions">
                    <a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title=""> </a>
                </div>
            </div>
            <div class="portlet-body">
                <form id="ajax-form" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div class="form-body">
                        <div class="row" style="margin-bottom: 10px;">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        选择人员
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-md-9">
                                        <button class="form-control select-member" type="button" data-title="选择人员">选择人员</button>
                                        <input type="hidden" class="memberId" name="memberId" value="">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        选择组织
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-md-9">
                                        <button class="form-control select-organization" type="button" data-title="选择组织">选择组织</button>
                                        <input type="hidden" class="organizationId" name="organizationId" value="">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        职务
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-md-9">
                                        <select id="jobId" name="jobId" class="form-control">
                                            <option value="">选择职务</option>
                                            {foreach name="jobList" item="job" key="jobkey"}
                                            <option value="{$job.id}">{$job.name}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        简介
                                    </label>
                                    <div class="col-md-9">
                                        <textarea class="form-control" name="introduction" maxlength="300" placeholder="" cols="90" rows="5"></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <input type="hidden" name="id" value="">

                        <hr />
                        <div class="row">
                            <div class="form-actions">
                                <div class="col-md-offset-2 col-md-10">
                                    <button type="button" id="form-submit" class="btn blue save-btn">
                                        保存 <i class="fa fa-floppy-o"></i>
                                    </button>
                                    <button type="button" class="btn default" onclick="history.go(-1);">
                                        返回 <i class="fa fa-mail-forward"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<input type="hidden" class="token_url" value="{:url('admin/Image/token')}">
<input type="hidden" class="record_url" value="{:url('admin/Image/record')}">
<input type="hidden" class="delimage_url" value="{:url('admin/Image/delete')}">

<input type="hidden" class="save_url" value="{:url('admin/'.strtolower($model).'/addpost')}">
<input type="hidden" class="members_url" value="{:url('admin/iframe/memberList', ['selectName' => 'select-member', 'fieldName' => 'memberId'])}">
<input type="hidden" class="organizations_url" value="{:url('admin/iframe/organizationList')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/cadremember.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/select_member.js" type="text/javascript"></script>
{/block}